package com.poor.user.client.controller;

import com.poor.core.Result;
import com.poor.core.ResultGenerator;
import com.poor.user.client.model.request.PoorFilmPageRequestBean;
import com.poor.user.client.model.request.UserRequestBean;
import com.poor.user.client.service.FlimService;
import com.poor.user.client.service.UserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/film")
public class FilmController {
    @Resource
    private FlimService flimService;
    @PostMapping("/list")
    public Result list(@RequestBody PoorFilmPageRequestBean poorFilmPageRequestBean) {
        return ResultGenerator.genSuccessResult(flimService.flimList(poorFilmPageRequestBean));
    }
}
